<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'comandalin-form',
	'enableAjaxValidation'=>false,
)); ?>


	<?php echo $form->errorSummary($model); ?>
    
    <div class="row" style="float: left;">
		<?php echo $form->labelEx($model,'producte_id'); ?>
        <?php echo $form->dropDownList($model, 'producte_id',
            CHtml::listData(Producte::model()->findAll(), 'id', 'descripcio'),
                array('prompt'=>'(Tria un producte)'));?>
        <?php echo $form->error($model,'producte_id'); ?>
	</div>

	<div class="row" style="float: left; margin-left: 8px;">
		<?php echo $form->labelEx($model,'quantitat'); ?>
		<?php echo $form->textField($model,'quantitat', array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'quantitat'); ?>
	</div>

    <div style="clear: both;"><br/></div>
    
	<div class="row">
		<?php echo $form->labelEx($model,'observacions'); ?>
		<?php echo $form->textField($model,'observacions',array('size'=>40,'maxlength'=>40)); ?>
		<?php echo $form->error($model,'observacions'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Afegir' : 'Guardar'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->